﻿using System;
namespace Ex4.Person
{
    //This class contains information for the event
    public class PropertyChangedEventArgs : EventArgs
    {
        private string nameOfProperty;
        private object oldValue;
        private object newValue;

        public string NameOfProperty
        {
            get
            {
                return this.nameOfProperty;
            }
        }
        public object OldValue
        {
            get
            {
                return this.oldValue;
            }
        }
        public object NewValue
        {
            get
            {
                return this.newValue;
            }
        }

        public PropertyChangedEventArgs(string nameOfProperty, object oldValue, object newValue)
        {
            this.nameOfProperty = nameOfProperty;
            this.oldValue = oldValue;
            this.newValue = newValue;
        }
    }
}
